package com.jk.smartelderlycare.pojo;

import lombok.Data;

import java.io.Serializable;

@Data
public class ResponseResult<T> implements Serializable {
    private static final long serialVersionUID = 8553800792385281614L;
    private int code;           //状态码:  200, 500代码错误
    private String message;     //返回信息
    private T data;             //接口数据
    //查询 回显....
    public ResponseResult(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
    //删除 ,新增, 修改
    public ResponseResult(int code, String message) {
        this.code = code;
        this.message = message;
    }


}